import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import axios from "axios";
import qs from 'qs'
import ElementPlus from "element-plus"
import "element-plus/dist/index.css"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入暗黑模式
import 'element-plus/theme-chalk/dark/css-vars.css'
import './assets/css/base.css'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// 引入element-plus
app.use(ElementPlus)
app.use(createPinia())
app.use(router)
app.config.globalProperties.$qs = qs;
app.mount('#app')
axios.defaults.baseURL = "http://localhost:8081";